using System;
using NHibernate;

namespace Myotragus.Data.Criteria
{
	public interface IQueryBuilder : IService
	{
		IPagedQuery<TEntity> CreateQuery<TEntity>(ICriteria criteria);

		int Count(ICriteria criteria);

		ICriteria CreateCriteria(Type persistentType);
	}
}